<layout name="Iflayout"/>
<div class="xyh-content">

    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><em class="glyphicon glyphicon-cloud-upload"></em>
                系统用户列表
            </h3>
        </div>

    </div>

    <div class="row margin-botton">
        <div class="col-sm-6 column">
            <div class="btn-group btn-group-md">
                <button class="btn btn-primary" type="button" onclick="goUrl('/xyhai.php?s=/Rbac/addUser')"><em class="glyphicon glyphicon-plus-sign"></em> 添加系统用户</button>
                <button class="btn btn-default" type="button" onclick="doConfirmBatch('/xyhai.php?s=/Rbac/delUser/batchFlag/1', '确实要删除选择项吗？')"><em class="glyphicon glyphicon-remove-circle"></em> 删除</button>
            </div>
        </div>
        <div class="col-sm-6 text-right">
            <form class="form-inline" method="post" action="/xyhai.php?s=/Rbac/index">
                <div class="form-group">
                    <label class="sr-only" for="inputKeyword">关键字</label>
                    <input type="text" class="form-control" name="keyword" id="inputKeyword" placeholder="用户名称" value="">
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
            </form>        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <form action="" method="post" id="form_do" name="form_do">
                <div class="table-responsive">
                    <table class="table table-hover xyh-table-bordered-out">
                        <thead>
                        <tr class="active">
                            <th><input type="checkbox" id="check"></th>
                            <th>编号</th>
                            <th>用户名</th>
                            <th>权限组</th>
                            <th>上次登录ip</th>
                            <th>上次登录时间</th>
                            <th>锁定</th>
                            <th class="text-right">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name="minfo" item="v">
                        <tr>
                            <td><input type="checkbox" name="key[]" disabled="disabled" value="1"></td>
                            <td>{$v.id}</td>
                            <td>{$v.username}</td>
                            <td>
                                {$v['role'][0]['name']}
                            </td>
                            <td>{$v.login_ip}</td>
                            <td>{$v.time}</td>
                            <td>{$v['status']?'锁定':'正常'}</td>
                            <td class="text-right">
                                <a href="/xyhai.php?s=/Rbac/addUser/uid/1" class="label label-success">修改</a>
                                <span class="label label-default">删除</span>

                            </td>
                        </tr>
                        </foreach>
                        </tbody>
                    </table>
                </div>
            </form>

            <div class="row clearfix">
                <div class="col-md-12 column">
                    <div class="xyh-page">
                        <div><span class="rows">共 {$user_num}条记录</span>     </div>                    </div>
                </div>
            </div>


        </div>
    </div>



</div>
